<template>
    <div>
        我是孙子组件 -- {{ huzi }}--{{ app }}
    </div>
</template>

<script setup>
import { inject } from 'vue';
const huzi = inject('hu')
console.log('后代组件', huzi);
const app = inject('app', 10000)
console.log(app);
</script>
<style scoped>

</style>